# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=py3-flask-restx
pkgver=1.1.0
pkgrel=1
pkgdesc="Fully featured framework for fast, easy and documented API development with Flask"
url="https://flask-restx.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-flask py3-aniso8601 py3-jsonschema py3-tz py3-werkzeug py3-setuptools"
checkdepends="py3-pytest py3-faker py3-blinker py3-mock py3-pytest-cov py3-pytest-mock"
subpackages="$pkgname-pyc"
source="flask-restx-$pkgver.tar.gz::https://github.com/python-restx/flask-restx/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/flask-restx-$pkgver"
options="!check" # cannot get checks working

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
83c0319591078827fe7ad2db04833817df13b5e808e3137b309b6b994908c9ae40c665aa8f10def5e06a7d1f41d9b4dc03be35c46b6403e03ef28684cc512380  flask-restx-1.1.0.tar.gz
"
